home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib7 / v_09_09 / 9n09020b < prev    next >
Encoding:
Text File  |  1995-11-01  |  245 b   |  17 lines

  1.  
  2. void myexit(void)
  3. {
  4.     char reply[11];
  5.  
  6.     if (proot_node != NULL) {
  7.         printf("\n   The list still has nodes. Throw them away? ");
  8.         scanf("%10s", reply);
  9.         if (tolower(reply[0]) == 'n') {
  10.             return;
  11.         }
  12.     }
  13.  
  14.     exit(EXIT_SUCCESS);
  15. }
  16.  
  17.